<template>
  <div class="image">
    <img :src="list[0]+'?'+new Date().getTime()" />
  </div>
</template>

<script>
import api from '@/api'
import base64 from '@/util/base64'

export default {
  data() {
    return {
      list: []
    }
  },
  methods: {
    getList() {
      api.User.getCert().then(response => {
        let { data } = response
        data = base64.parse(data)
        console.log(data)
        this.list = data.list
      })
    }
  },
  created() {
    this.getList()
  }
}
</script>

<style scoped lang="stylus">

</style>
